import db.DbConnect;


public class WebserviceTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
    	Webservice ws = new Webservice();
		DbConnect.connect();
		
		String [] flightIDS  = ws.getOptimalRoute("Bucuresti", "Paris", 10, 25);
		String reservationID = ws.bookTicket(flightIDS,4);
		System.out.println("Reservation ID:"+reservationID);
		ws.buyTicket(reservationID,"creditcardinfo");
		DbConnect.disconnect();
	}

}
